package office.action.business.form;

import office.bo.business.impl.TenderCompany;
import platform.common.bo.IIdentifiableObj;
/**
 * 竞标公司Form
 * @author ZhangYQ
 *
 */
public class TenderCompanyForm {
	private String id;
	private String companyName;//公司名称
	private String address;    //公司地址
	private String edge;       //公司优势
	private String inferior;   //公司劣势
	private String   salesMan;   //业务员
	private String salesPhone; //业务员手机
	private String mark;//备注
	private String bidBookId;//标书对象
	private String bidBookName; //对应的标书名称
	//2011-1-15日加入
	private double tenderMoney; //投标金额
	
	public IIdentifiableObj copyPropertiesToBO(IIdentifiableObj newObj) {
		TenderCompany bo = (TenderCompany)newObj;
		bo.setId(this.id);
		bo.setCompanyName(companyName);
		bo.setAddress(address);
		bo.setEdge(edge);
		bo.setInferior(inferior);
		bo.setSalesMan(salesMan);
		bo.setSalesPhone(salesPhone);
		bo.setMark(mark);
		bo.setBidBookId(bidBookId);
		bo.setBidBookName(bidBookName);
		bo.setTenderMoney(tenderMoney);
		return bo;
	}
	
	public void copyPropertiesFromBO(IIdentifiableObj baseBO) {
		TenderCompany bo = (TenderCompany)baseBO;
		this.id = bo.getId().toString();
		this.companyName = bo.getCompanyName();
		this.address = bo.getAddress();
		this.edge = bo.getEdge();
		this.inferior = bo.getInferior();
		this.salesMan = bo.getSalesMan();
		this.salesPhone = bo.getSalesPhone();
		this.mark = bo.getMark();
		this.bidBookId = bo.getBidBookId();
		this.bidBookName = bo.getBidBookName();
		this.tenderMoney = bo.getTenderMoney();
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getCompanyName() {
		return companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getEdge() {
		return edge;
	}

	public void setEdge(String edge) {
		this.edge = edge;
	}

	public String getInferior() {
		return inferior;
	}

	public void setInferior(String inferior) {
		this.inferior = inferior;
	}

	public String getSalesMan() {
		return salesMan;
	}

	public void setSalesMan(String salesMan) {
		this.salesMan = salesMan;
	}

	public String getSalesPhone() {
		return salesPhone;
	}

	public void setSalesPhone(String salesPhone) {
		this.salesPhone = salesPhone;
	}

	public String getMark() {
		return mark;
	}

	public void setMark(String mark) {
		this.mark = mark;
	}

	public String getBidBookId() {
		return bidBookId;
	}

	public void setBidBookId(String bidBookId) {
		this.bidBookId = bidBookId;
	}

	public String getBidBookName() {
		return bidBookName;
	}

	public void setBidBookName(String bidBookName) {
		this.bidBookName = bidBookName;
	}

	public double getTenderMoney() {
		return tenderMoney;
	}

	public void setTenderMoney(double tenderMoney) {
		this.tenderMoney = tenderMoney;
	}
	
}
